﻿using ChoMy.Models.Data;
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Web;

namespace ChoMy.Models
{
    public class ChoMyContext : DbContext
    {
        public ChoMyContext() : base("DefaultConnection") { }

        // Blog
        public DbSet<BlogCategory> BlogCategories { get; set; }
        public DbSet<BlogComment> BlogComments { get; set; }
        public DbSet<BlogPost> BlogPosts { get; set; }

        // Master
        public DbSet<MasterCategory> MasterCategories { get; set; }
        public DbSet<MasterComment> MasterComments { get; set; }
        public DbSet<MasterPost> MasterPosts { get; set; }

        // Main
        public DbSet<Brand> Brands { get; set; }
        public DbSet<Category> Categories { get; set; }
        public DbSet<CategoryPropertyType> CategoryPropertyTypes { get; set; }
        public DbSet<Event> Events { get; set; }
        public DbSet<EventProduct> EventProducts { get; set; }
        public DbSet<History> Histories { get; set; }
        public DbSet<HistoryType> HistoryTypes { get; set; }
        public DbSet<Image> Images { get; set; }
        public DbSet<Order> Orders { get; set; }
        public DbSet<OrderStyle> OrderStyles { get; set; }
        public DbSet<Post> Posts { get; set; }
        public DbSet<PostGroup> PostGroups { get; set; }
        public DbSet<PostInGroup> PostInGroups { get; set; }
        public DbSet<Product> Products { get; set; }
        public DbSet<Property> Properties { get; set; }
        public DbSet<PropertyType> PropertyTypes { get; set; }
        public DbSet<Receiver> Receivers { get; set; }
        public DbSet<Role> Roles { get; set; }
        public DbSet<RoleGroup> RoleGroups { get; set; }
        public DbSet<RoleInGroup> RoleInGroups { get; set; }
        public DbSet<Setting> Settings { get; set; }
        public DbSet<ShoppingCart> ShoppingCarts { get; set; }
        public DbSet<Style> Styles { get; set; }
        public DbSet<StyleProperty> StyleProperties { get; set; }
        public DbSet<Trend> Trends { get; set; }
        public DbSet<TrendProduct> TrendProducts { get; set; }
        public DbSet<UploadFile> UploadFiles { get; set; }
        public DbSet<Video> Videos { get; set; }
    }
}